public class ArrayHelper
{
    public static boolean equal( int[] first , int[] second )
    {
        Boolean len=true;
        if(first.length==second.length)
        {
            len=true;
        }
        else
            {
                len=false;
               return false;
            }
                if (len=true)
                {
                    for(int i=0;i<first.length;i++)
                    {
                        if(first[i]!=second[i])
                        {
                            return  false;
                        }
                    }
                }
                return true;

    }

    public static void main(String[] args)
    {
        int arr1[]={1,2,3,4,5};
        int arr2[]={1,2,3,4,5};
        boolean judege;
        judege=ArrayHelper.equal( arr1,arr2);
        System.out.println(judege);

    }
}
